<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="lufylegend-1.10.0.js"></script>
</head>

<body>
<div id="mylegend">loading...</div>
<script>
var loader;
init(50,"mylegend",1000,600,main);
function main(){
	loader=new LLoader();
	loader.addEventListener(LEvent.COMPLETE,loadBitmapdata);
	loader.load("xk.jpg","bitmapData");
}
function loadBitmapdata(event){
	var bitmapdata=new LBitmapData(loader.content);
	/*var bitmap=new LBitmap(bitmapdata);*/
/*	bitmap.x=100;
	bitmap.y=100;
	bitmap.rotate=60;
	bitmap.alpha=0.5;*/
	var layer=new LSprite();
	addChild(layer);
/*	layer.addChild(bitmap);
	layer.x=300;
	layer.y=200;
	layer.rotate=60;*/
	layer.graphics.beginBitmapFill(bitmapdata);
	//圆形
	/*layer.graphics.drawArc(1,"#000",[110,80,50,0,Math.PI*2]);*/
	//正方形
	/*layer.graphics.drawRect(1,"#000",[100,50,100,150]);*/
	//多边形
	layer.graphics.drawVertices(1,"#000",[[120,50],[100,200],[160,60],[200,150]]);
}
</script>
</body>
</html>
